#pragma once


// CFormatBrushDlg dialog

class CDisplayObj;
class CFormatBrushDlg : public CDialogEx
{
	DECLARE_DYNAMIC(CFormatBrushDlg)

public:
	CFormatBrushDlg(CWnd* pParent = NULL);   // standard constructor
	CFormatBrushDlg(CDisplayObj* pDisObj,CWnd* pParent = NULL);
	virtual ~CFormatBrushDlg();

	bool GetbBoundColor() const {return m_bBoundColor;}
	bool GetbFillColor() const {return m_bFillColor;}
	bool GetbFont() const {return m_bFont;}
	bool GetbFontSize() const {return m_bFontSize;}
	bool GetbFontColor() const	{ return m_bFontColor; }
	bool GetbPic() const {return m_bPic;}
	bool GetbLineWidth() const {return m_bLineWidth;}
	bool GetbClose() const {return m_bIsClose;}

// Dialog Data
	enum { IDD = IDD_FORMAT_BRUSH };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnInitDialog();

	DECLARE_MESSAGE_MAP()
public:
	HICON m_hIcon;
	CButton m_btBColor;
	CButton m_btFColor;
	CButton m_btFont;
	CButton m_btPic;
	CButton m_btFontSize;
	CButton m_btLineWidth;
	afx_msg void OnClickedCheckBoundColor();
	afx_msg void OnClickedCheckFillColor();
	afx_msg void OnClickedCheckFont();
	afx_msg void OnClickedCheckPic();
	afx_msg void OnClickedFontSize();
	afx_msg void OnClickedLineWidth();
	afx_msg void OnClickedCheckFontColor();

private:
	CDisplayObj* m_pDisObj;

	bool m_bBoundColor;
	bool m_bFillColor;
	bool m_bFont;
	bool m_bFontSize;
	bool m_bPic;
	bool m_bLineWidth;
	bool m_bFontColor;

	bool m_bIsClose;
public:
	afx_msg void OnDestroy();
	afx_msg void OnClose();
	CButton m_btFontColor;
	virtual void OnCancel();
};
